<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns:c="http://java.sun.com/jstl/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
	  xmlns:jsp="http://java.sun.com/JSP/Page"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:s="http://jboss.com/products/seam/taglib"
	  xmlns:spring="http://www.springframework.org/tags"
	  xmlns:a4j="http://richfaces.org/a4j"
	  xmlns:rich="http://richfaces.org/rich"
	  xmlns:t="http://myfaces.apache.org/tomahawk"
	  xmlns:clickframes="http://issuetracker.demo"
	  xmlns="http://www.w3.org/1999/xhtml">
<f:loadBundle basename="messages" var="messages" />
<fmt:setBundle basename='messages' scope='application' />

<ui:composition
    template="/WEB-INF/facelets/layout/layout.xhtml">

    <ui:define name="title">Database Debug</ui:define>
    <ui:param name="clickframesPage" value="debug" />

    <ui:define name="page-content">

	  <h2>Database Debug</h2>
	  <!--
		 This page displays all data stored in the system.
	  -->
	  
	  <div id="page-navigation" class="grid_2 alpha">
		  <ul>
		  </ul>
	  </div>
	  
	  <div id="page-content" class="grid_10 omega">

	  <clickframes:messages />
	  

	  <h:form id="form" >
	  <s:validateAll>

		 <div class="actions alpha prefix_2 grid_4">
		 </div>
		 <div class="clear"></div>
	  </s:validateAll>
	  </h:form>
  
 
		 <div class="output-list">
			<h3>All Users</h3>
			<h:dataTable border="1" value="#{debugController.userList}" var="user">
			   <h:column>
 
 			   </h:column>
			   <h:column>
				  <f:facet name="header">Username</f:facet>
				  #{user.username}
			   </h:column>
			   <h:column>
				  <f:facet name="header">Password</f:facet>
				  #{user.password}
			   </h:column>
             </h:dataTable>
		 </div>
		 <div class="output-list">
			<h3>All Issues</h3>
			<h:dataTable border="1" value="#{debugController.issueList}" var="issue">
			   <h:column>
 
 			   </h:column>
			   <h:column>
				  <f:facet name="header">Id</f:facet>
				  #{issue.id}
			   </h:column>
			   <h:column>
				  <f:facet name="header">Title</f:facet>
				  #{issue.title}
			   </h:column>
			   <h:column>
				  <f:facet name="header">Description</f:facet>
				  #{issue.description}
			   </h:column>
			   <h:column>
				  <f:facet name="header">Priority</f:facet>
				  #{issue.priority}
			   </h:column>
			   <h:column>
				  <f:facet name="header">Assignee</f:facet>
				  #{issue.assignee}
			   </h:column>
			   <h:column>
				  <f:facet name="header">Owner</f:facet>
				  #{issue.owner}
			   </h:column>
			   <h:column>
				  <f:facet name="header">Environment</f:facet>
				  #{issue.environment}
			   </h:column>
			   <h:column>
				  <f:facet name="header">Attachment</f:facet>
                                  <h:panelGroup rendered="#{issue.attachment.valid}">
                                    <a href="issue.download?id=#{issue.id}">Download</a>
                                  </h:panelGroup>
			   </h:column>
             </h:dataTable>
		 </div>
 	  </div>

    </ui:define>
</ui:composition>
</html><!-- clickframes::version=3535271826::clickframes -->